<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>蓝图规划 | 人生时光轴</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <style>
        :root {
            /* 优化配色方案 */
            --color01: #534739; /* 深棕色 */
            --color02: #9E8774; /* 棕褐色 */
            --color03: #F0F2F1; /* 米白色 */
            --color04: #1F2D33; /* 深青色 */
            --color05: #0D0D0C; /* 近黑色 */
            
            /* 优先级色彩 */
            --critical: #E71D36; /* 紧急 */
            --high: #FF9F1C; /* 高 */
            --medium: #2EC4B6; /* 中 */
            --low: #4361EE; /* 低 */
            
            /* 增强玻璃质感 */
            --glass: rgba(240, 242, 241, 0.85);
            --glass-border: rgba(255, 255, 255, 0.4);
            --glass-shadow: rgba(83, 71, 57, 0.25);
            
            /* 动画效果 */
            --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }

        body {
            background: linear-gradient(135deg, #F0F2F1 0%, #e8eaea 100%);
            color: var(--color01);
            min-height: 100vh;
            overflow-x: hidden;
            padding: 0;
            background-image: url('');
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* 顶部导航栏 - 增强玻璃效果 */
        .navbar {
            position: sticky;
            top: 0;
            z-index: 100;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 30px;
            background: var(--glass);
            backdrop-filter: blur(12px) saturate(180%);
            -webkit-backdrop-filter: blur(12px) saturate(180%);
            border-radius: 0 0 20px 20px;
            margin-bottom: 20px;
            box-shadow: 0 4px 20px var(--glass-shadow);
            border: 1px solid var(--glass-border);
            border-top: none;
            transition: var(--transition);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .logo-icon {
            font-size: 28px;
            color: var(--color04);
            animation: pulse 2s infinite;
        }

        .logo-text {
            font-size: 24px;
            font-weight: 600;
            letter-spacing: 1px;
            background: linear-gradient(45deg, var(--color05), var(--color01));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            position: relative;
        }

        /* 导航链接 */
        .nav-toggle {
            display: none;
            font-size: 24px;
            color: var(--color01);
            cursor: pointer;
            z-index: 101;
        }

        .nav-links {
            display: flex;
            gap: 20px;
        }

        .nav-link {
            text-decoration: none;
            color: var(--color01);
            font-size: 16px;
            font-weight: 500;
            padding: 8px 14px;
            border-radius: 50px;
            transition: var(--transition);
            position: relative;
        }

        .nav-link:hover {
            background: rgba(255, 255, 255, 0.3);
            color: var(--color04);
        }

        .nav-link.active {
            background: rgba(158, 135, 116, 0.2);
            color: var(--color04);
        }

        .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -6px;
            left: 50%;
            transform: translateX(-50%);
            width: 6px;
            height: 6px;
            background: var(--color04);
            border-radius: 50%;
        }

        .user-actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .search-box {
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.6);
            border-radius: 50px;
            padding: 6px 12px;
            transition: var(--transition);
        }

        .search-box:hover {
            background: rgba(255, 255, 255, 0.8);
            box-shadow: 0 0 15px rgba(158, 135, 116, 0.2);
        }

        .search-box input {
            background: transparent;
            border: none;
            outline: none;
            padding: 5px 10px;
            width: 160px;
            color: var(--color01);
            font-size: 15px;
        }

        .search-box i {
            color: var(--color02);
        }

        .user-profile {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(45deg, var(--color02), var(--color01));
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--color03);
            font-weight: bold;
            cursor: pointer;
            box-shadow: 0 4px 12px var(--glass-shadow);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .user-profile::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: 0.5s;
        }

        .user-profile:hover::before {
            left: 100%;
        }

        .user-profile:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 18px rgba(83, 71, 57, 0.35);
        }

        /* 主内容区 */
        .main-content {
            margin-bottom: 40px;
        }

        /* 右侧内容区 - 增强玻璃效果 */
        .content-area {
            background: var(--glass);
            backdrop-filter: blur(12px) saturate(180%);
            -webkit-backdrop-filter: blur(12px) saturate(180%);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 8px 32px var(--glass-shadow);
            border: 1px solid var(--glass-border);
            animation: fadeIn 0.8s ease-out;
        }

        /* 蓝图规划页面特定样式 */
        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(158, 135, 116, 0.2);
        }
        
        .page-title {
            font-size: 32px;
            background: linear-gradient(45deg, var(--color05), var(--color01));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            position: relative;
        }
        
        .page-subtitle {
            color: var(--color02);
            font-size: 16px;
            margin-top: 5px;
            font-weight: 500;
        }
        
        .plan-actions {
            display: flex;
            gap: 15px;
        }
        
        .plan-action-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 25px;
            border-radius: 50px;
            background: linear-gradient(135deg, var(--color02), var(--color01));
            color: var(--color03);
            border: none;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 4px 12px var(--glass-shadow);
            position: relative;
            overflow: hidden;
            z-index: 1;
        }
        
        .plan-action-btn.secondary {
            background: transparent;
            color: var(--color01);
            border: 1px solid var(--color02);
        }
        
        .plan-action-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(83, 71, 57, 0.35);
        }
        
        /* 规划概览 */
        .overview-section {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 25px;
            margin-bottom: 30px;
        }
        
        .goals-container {
            background: rgba(255, 255, 255, 0.65);
            border-radius: 20px;
            padding: 25px;
            box-shadow: 0 4px 15px var(--glass-shadow);
            border: 1px solid var(--glass-border);
            backdrop-filter: blur(5px);
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
        }
        
        .section-title {
            font-size: 20px;
            color: var(--color05);
            position: relative;
            display: inline-block;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 50px;
            height: 3px;
            background: linear-gradient(90deg, var(--color02), var(--color01));
            border-radius: 2px;
        }
        
        .view-all {
            color: var(--color04);
            text-decoration: none;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: var(--transition);
            padding: 6px 12px;
            border-radius: 20px;
        }
        
        .view-all:hover {
            gap: 12px;
            color: var(--color01);
            background: rgba(158, 135, 116, 0.1);
        }
        
        /* 目标卡片 */
        .goal-card {
            background: rgba(255, 255, 255, 0.8);
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 15px;
            box-shadow: 0 4px 10px var(--glass-shadow);
            border: 1px solid var(--glass-border);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }
        
        .goal-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(83, 71, 57, 0.25);
        }
        
        .goal-card.completed {
            background: rgba(46, 196, 182, 0.1);
            border-left: 4px solid var(--medium);
        }
        
        .goal-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .goal-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--color05);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .goal-priority {
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
        }
        
        .priority-critical {
            background: rgba(231, 29, 54, 0.15);
            color: var(--critical);
        }
        
        .priority-high {
            background: rgba(255, 159, 28, 0.15);
            color: var(--high);
        }
        
        .priority-medium {
            background: rgba(46, 196, 182, 0.15);
            color: var(--medium);
        }
        
        .priority-low {
            background: rgba(67, 97, 238, 0.15);
            color: var(--low);
        }
        
        .goal-meta {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
            font-size: 14px;
            color: var(--color02);
        }
        
        .goal-date, .goal-category {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .goal-desc {
            color: var(--color01);
            line-height: 1.6;
            font-size: 15px;
            margin-bottom: 20px;
        }
        
        .goal-progress {
            margin-bottom: 15px;
        }
        
        .progress-bar {
            height: 8px;
            background: rgba(158, 135, 116, 0.1);
            border-radius: 4px;
            overflow: hidden;
        }
        
        .progress-fill {
            height: 100%;
            border-radius: 4px;
            background: linear-gradient(90deg, var(--color02), var(--color01));
            transition: width 0.5s ease;
        }
        
        .progress-text {
            text-align: right;
            font-size: 14px;
            color: var(--color02);
            margin-top: 5px;
        }
        
        .goal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 15px;
        }
        
        .goal-btn {
            padding: 6px 15px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            border: none;
        }
        
        .goal-btn.primary {
            background: linear-gradient(135deg, var(--color02), var(--color01));
            color: var(--color03);
        }
        
        .goal-btn.secondary {
            background: transparent;
            color: var(--color01);
            border: 1px solid var(--color02);
        }
        
        .goal-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 10px rgba(83, 71, 57, 0.2);
        }
        
        /* 统计侧边栏 */
        .stats-sidebar {
            background: rgba(255, 255, 255, 0.65);
            border-radius: 20px;
            padding: 25px;
            box-shadow: 0 4px 15px var(--glass-shadow);
            border: 1px solid var(--glass-border);
            backdrop-filter: blur(5px);
            display: flex;
            flex-direction: column;
            gap: 25px;
        }
        
        .stats-card {
            background: rgba(255, 255, 255, 0.8);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 4px 10px var(--glass-shadow);
            border: 1px solid var(--glass-border);
        }
        
        .stats-title {
            font-size: 18px;
            margin-bottom: 15px;
            color: var(--color05);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }
        
        .stat-item {
            text-align: center;
            padding: 15px;
            border-radius: 10px;
            background: rgba(240, 242, 241, 0.7);
        }
        
        .stat-value {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 5px;
            color: var(--color05);
        }
        
        .stat-label {
            font-size: 14px;
            color: var(--color02);
        }
        
        .chart-container {
            height: 200px;
            position: relative;
        }
        
        /* 目标时间线 */
        .timeline-section {
            background: rgba(255, 255, 255, 0.65);
            border-radius: 20px;
            padding: 25px;
            box-shadow: 0 4px 15px var(--glass-shadow);
            border: 1px solid var(--glass-border);
            backdrop-filter: blur(5px);
        }
        
        .timeline-container {
            max-height: 400px;
            overflow-y: auto;
            padding-right: 15px;
        }
        
        .timeline-container::-webkit-scrollbar {
            width: 6px;
        }
        
        .timeline-container::-webkit-scrollbar-track {
            background: rgba(158, 135, 116, 0.1);
            border-radius: 10px;
        }
        
        .timeline-container::-webkit-scrollbar-thumb {
            background: linear-gradient(to bottom, var(--color02), var(--color01));
            border-radius: 10px;
        }
        
        .timeline {
            position: relative;
            padding-left: 30px;
            margin-left: 15px;
        }
        
        .timeline::before {
            content: '';
            position: absolute;
            left: 0;
            top: 10px;
            height: calc(100% - 20px);
            width: 3px;
            background: linear-gradient(to bottom, var(--color02), var(--color01));
            border-radius: 3px;
        }
        
        .timeline-item {
            position: relative;
            margin-bottom: 25px;
            padding-left: 30px;
            transition: var(--transition);
        }
        
        .timeline-item:hover {
            transform: translateX(8px);
        }
        
        .timeline-item::before {
            content: '';
            position: absolute;
            left: -8px;
            top: 8px;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: var(--color02);
            border: 3px solid var(--color03);
            box-shadow: 0 0 0 3px rgba(158, 135, 116, 0.3);
            transition: var(--transition);
            z-index: 2;
        }
        
        .timeline-item:hover::before {
            transform: scale(1.2);
            box-shadow: 0 0 0 6px rgba(158, 135, 116, 0.3);
        }
        
        .timeline-date {
            font-weight: 600;
            color: var(--color04);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .timeline-content {
            background: rgba(255, 255, 255, 0.8);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 4px 15px var(--glass-shadow);
            border: 1px solid var(--glass-border);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }
        
        .timeline-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 5px;
            height: 100%;
            background: linear-gradient(to bottom, var(--color02), var(--color01));
        }
        
        .timeline-content:hover {
            box-shadow: 0 8px 25px rgba(83, 71, 57, 0.25);
            transform: translateY(-3px);
        }
        
        .timeline-title {
            font-size: 18px;
            margin-bottom: 10px;
            color: var(--color05);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        /* 添加目标表单 */
        .add-goal-form {
            background: rgba(255, 255, 255, 0.8);
            border-radius: 15px;
            padding: 30px;
            margin-top: 30px;
            box-shadow: 0 4px 20px var(--glass-shadow);
            border: 1px solid var(--glass-border);
            backdrop-filter: blur(5px);
            display: none;
        }
        
        .form-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
        }
        
        .form-title {
            font-size: 24px;
            background: linear-gradient(45deg, var(--color05), var(--color01));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .close-form {
            background: transparent;
            border: none;
            font-size: 24px;
            color: var(--color02);
            cursor: pointer;
            transition: var(--transition);
        }
        
        .close-form:hover {
            transform: rotate(90deg);
            color: var(--color04);
        }
        
        .form-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group.full-width {
            grid-column: span 2;
        }
        
        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--color01);
        }
        
        .form-control {
            width: 100%;
            padding: 12px 15px;
            border-radius: 10px;
            border: 1px solid var(--glass-border);
            background: rgba(255, 255, 255, 0.6);
            font-size: 15px;
            color: var(--color01);
            transition: var(--transition);
        }
        
        .form-control:focus {
            outline: none;
            border-color: var(--color02);
            box-shadow: 0 0 0 3px rgba(158, 135, 116, 0.2);
        }
        
        .form-actions {
            display: flex;
            gap: 15px;
            justify-content: flex-end;
            grid-column: span 2;
            margin-top: 10px;
        }
        
        .btn {
            padding: 10px 25px;
            border-radius: 50px;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            border: none;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, var(--color02), var(--color01));
            color: var(--color03);
            box-shadow: 0 4px 12px var(--glass-shadow);
        }
        
        .btn-secondary {
            background: transparent;
            color: var(--color01);
            border: 1px solid var(--color02);
        }
        
        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 18px rgba(83, 71, 57, 0.3);
        }
        
        /* 动画定义 */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        /* 响应式设计 */
        @media (max-width: 1024px) {
            .nav-links {
                gap: 15px;
            }
        
            .nav-link {
                font-size: 15px;
                padding: 6px 12px;
            }
            
            .overview-section {
                grid-template-columns: 1fr;
            }
            
            .form-grid {
                grid-template-columns: 1fr;
            }
            
            .form-group.full-width {
                grid-column: span 1;
            }
            
            .form-actions {
                grid-column: span 1;
            }
        }
        
        @media (max-width: 768px) {
            .nav-toggle {
                display: block;
            }
        
            .nav-links {
                position: fixed;
                top: 80px;
                right: -100%;
                flex-direction: column;
                background: var(--glass);
                backdrop-filter: blur(12px) saturate(180%);
                padding: 25px 30px;
                border-radius: 15px 0 0 15px;
                box-shadow: -5px 0 15px var(--glass-shadow);
                transition: right 0.4s ease;
                z-index: 99;
                border: 1px solid var(--glass-border);
                gap: 15px;
            }
        
            .nav-links.active {
                right: 0;
            }
            
            .page-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 20px;
            }
            
            .plan-actions {
                width: 100%;
                justify-content: center;
            }
        }
        
        @media (max-width: 480px) {
            .navbar {
                padding: 12px 15px;
            }
        
            .logo-text {
                font-size: 20px;
            }
        
            .search-box {
                display: none;
            }
            
            .plan-action-btn {
                padding: 10px 15px;
                font-size: 14px;
            }
            
            .stats-grid {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>

<body>
    <div class="container">
        <!-- 顶部导航栏 -->
        <nav class="navbar">
            <div class="logo">
                <div class="logo-icon">
                    <i class="fas fa-hourglass-half"></i>
                </div>
                <div class="logo-text">人生时光轴</div>
            </div>

            <!-- 移动端菜单按钮 -->
            <div class="nav-toggle">
                <i class="fas fa-bars"></i>
            </div>

            <div class="nav-links">
                <a href="#" class="nav-link">时光轨迹</a>
                <a href="#" class="nav-link">生命记录</a>
                <a href="#" class="nav-link">记忆中心</a>
                <a href="#" class="nav-link active">蓝图规划</a>
                <a href="#" class="nav-link">人物自传</a>
                <a href="#" class="nav-link">时空胶囊</a>
            </div>

            <div class="user-actions">
                <div class="search-box">
                    <i class="fas fa-search"></i>
                    <input type="text" placeholder="搜索目标...">
                </div>
                <div class="user-profile">S</div>
            </div>
        </nav>

        <!-- 主内容区 -->
        <div class="main-content">
            <div class="content-area">
                <!-- 页面标题区 -->
                <div class="page-header">
                    <div>
                        <h1 class="page-title">蓝图规划</h1>
                        <p class="page-subtitle">设计你的人生蓝图，规划未来旅程</p>
                    </div>
                    <div class="plan-actions">
                        <button class="plan-action-btn" id="addGoalBtn">
                            <i class="fas fa-plus-circle"></i> 新增目标
                        </button>
                        <button class="plan-action-btn secondary">
                            <i class="fas fa-sliders-h"></i> 规划设置
                        </button>
                    </div>
                </div>
                
                <!-- 规划概览 -->
                <div class="overview-section">
                    <div class="goals-container">
                        <div class="section-header">
                            <h3 class="section-title">当前目标</h3>
                            <a href="#" class="view-all">查看全部 <i class="fas fa-arrow-right"></i></a>
                        </div>
                        
                        <!-- 目标卡片 1 -->
                        <div class="goal-card">
                            <div class="goal-card-header">
                                <h3 class="goal-title">
                                    <i class="fas fa-briefcase"></i> 晋升为高级产品经理
                                </h3>
                                <div class="goal-priority priority-high">高优先级</div>
                            </div>
                            <div class="goal-meta">
                                <div class="goal-date">
                                    <i class="fas fa-calendar"></i> 2024年12月31日前
                                </div>
                                <div class="goal-category">
                                    <i class="fas fa-tag"></i> 职业发展
                                </div>
                            </div>
                            <div class="goal-desc">
                                完成3个核心项目，获得PMP认证，提升团队管理能力，实现年度业绩目标。
                            </div>
                            <div class="goal-progress">
                                <div class="progress-bar">
                                    <div class="progress-fill" style="width: 45%"></div>
                                </div>
                                <div class="progress-text">45% 完成</div>
                            </div>
                            <div class="goal-actions">
                                <button class="goal-btn secondary">编辑</button>
                                <button class="goal-btn primary">更新进度</button>
                            </div>
                        </div>
                        
                        <!-- 目标卡片 2 -->
                        <div class="goal-card">
                            <div class="goal-card-header">
                                <h3 class="goal-title">
                                    <i class="fas fa-book"></i> 完成MBA学业
                                </h3>
                                <div class="goal-priority priority-medium">中优先级</div>
                            </div>
                            <div class="goal-meta">
                                <div class="goal-date">
                                    <i class="fas fa-calendar"></i> 2025年6月30日前
                                </div>
                                <div class="goal-category">
                                    <i class="fas fa-tag"></i> 教育学习
                                </div>
                            </div>
                            <div class="goal-desc">
                                完成所有课程学习，通过论文答辩，获得工商管理硕士学位。
                            </div>
                            <div class="goal-progress">
                                <div class="progress-bar">
                                    <div class="progress-fill" style="width: 30%"></div>
                                </div>
                                <div class="progress-text">30% 完成</div>
                            </div>
                            <div class="goal-actions">
                                <button class="goal-btn secondary">编辑</button>
                                <button class="goal-btn primary">更新进度</button>
                            </div>
                        </div>
                        
                        <!-- 目标卡片 3 -->
                        <div class="goal-card completed">
                            <div class="goal-card-header">
                                <h3 class="goal-title">
                                    <i class="fas fa-heartbeat"></i> 完成半程马拉松
                                </h3>
                                <div class="goal-priority priority-critical">已完成</div>
                            </div>
                            <div class="goal-meta">
                                <div class="goal-date">
                                    <i class="fas fa-calendar"></i> 2023年11月30日前
                                </div>
                                <div class="goal-category">
                                    <i class="fas fa-tag"></i> 健康生活
                                </div>
                            </div>
                            <div class="goal-desc">
                                每周训练4次，完成21公里半程马拉松比赛，目标时间2小时15分内。
                            </div>
                            <div class="goal-progress">
                                <div class="progress-bar">
                                    <div class="progress-fill" style="width: 100%"></div>
                                </div>
                                <div class="progress-text">100% 完成</div>
                            </div>
                            <div class="goal-actions">
                                <button class="goal-btn secondary">查看详情</button>
                                <button class="goal-btn primary">设为已完成</button>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 统计侧边栏 -->
                    <div class="stats-sidebar">
                        <div class="stats-card">
                            <h3 class="stats-title"><i class="fas fa-chart-pie"></i> 目标统计</h3>
                            <div class="stats-grid">
                                <div class="stat-item">
                                    <div class="stat-value">23</div>
                                    <div class="stat-label">进行中目标</div>
                                </div>
                                <div class="stat-item">
                                    <div class="stat-value">12</div>
                                    <div class="stat-label">已完成目标</div>
                                </div>
                                <div class="stat-item">
                                    <div class="stat-value">5</div>
                                    <div class="stat-label">已逾期目标</div>
                                </div>
                                <div class="stat-item">
                                    <div class="stat-value">68%</div>
                                    <div class="stat-label">平均完成度</div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="stats-card">
                            <h3 class="stats-title"><i class="fas fa-tasks"></i> 目标分布</h3>
                            <div class="chart-container">
                                <canvas id="goalChart"></canvas>
                            </div>
                        </div>
                        
                        <div class="stats-card">
                            <h3 class="stats-title"><i class="fas fa-exclamation-triangle"></i> 近期截止</h3>
                            <div class="upcoming-list">
                                <div class="goal-meta">
                                    <i class="fas fa-calendar-check"></i> 2023年12月15日
                                    <div class="goal-title">完成年度绩效评估</div>
                                </div>
                                <div class="goal-meta">
                                    <i class="fas fa-calendar-check"></i> 2024年1月10日
                                    <div class="goal-title">提交MBA学期论文</div>
                                </div>
                                <div class="goal-meta">
                                    <i class="fas fa-calendar-check"></i> 2024年2月1日
                                    <div class="goal-title">启动新项目提案</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 目标时间线 -->
                <div class="timeline-section">
                    <div class="section-header">
                        <h3 class="section-title">目标时间线</h3>
                        <div>
                            <button class="view-all" style="margin-right: 15px;">
                                <i class="fas fa-expand"></i> 全屏查看
                            </button>
                            <button class="view-all">
                                <i class="fas fa-cog"></i> 时间范围
                            </button>
                        </div>
                    </div>
                    
                    <div class="timeline-container">
                        <div class="timeline">
                            <div class="timeline-item">
                                <div class="timeline-date"><i class="fas fa-calendar"></i> 2023年12月</div>
                                <div class="timeline-content">
                                    <h3 class="timeline-title"><i class="fas fa-briefcase"></i> 完成年度绩效评估</h3>
                                    <p class="goal-desc">准备年度工作总结，与领导进行绩效面谈，设定下一年度目标。</p>
                                    <div class="goal-priority priority-high">高优先级</div>
                                </div>
                            </div>
                            
                            <div class="timeline-item">
                                <div class="timeline-date"><i class="fas fa-calendar"></i> 2024年1月</div>
                                <div class="timeline-content">
                                    <h3 class="timeline-title"><i class="fas fa-book"></i> 提交MBA学期论文</h3>
                                    <p class="goal-desc">完成市场分析研究，撰写1万字论文，准备答辩材料。</p>
                                    <div class="goal-priority priority-medium">中优先级</div>
                                </div>
                            </div>
                            
                            <div class="timeline-item">
                                <div class="timeline-date"><i class="fas fa-calendar"></i> 2024年3月</div>
                                <div class="timeline-content">
                                    <h3 class="timeline-title"><i class="fas fa-home"></i> 购买首套房产</h3>
                                    <p class="goal-desc">完成首付积累，选定区域，完成购房手续。</p>
                                    <div class="goal-priority priority-critical">紧急</div>
                                </div>
                            </div>
                            
                            <div class="timeline-item">
                                <div class="timeline-date"><i class="fas fa-calendar"></i> 2024年6月</div>
                                <div class="timeline-content">
                                    <h3 class="timeline-title"><i class="fas fa-plane"></i> 欧洲文化之旅</h3>
                                    <p class="goal-desc">规划15天行程，游览法国、意大利、希腊历史文化景点。</p>
                                    <div class="goal-priority priority-low">低优先级</div>
                                </div>
                            </div>
                            
                            <div class="timeline-item">
                                <div class="timeline-date"><i class="fas fa-calendar"></i> 2024年9月</div>
                                <div class="timeline-content">
                                    <h3 class="timeline-title"><i class="fas fa-graduation-cap"></i> 获得PMP认证</h3>
                                    <p class="goal-desc">完成培训课程，通过PMP考试，获得项目管理专业认证。</p>
                                    <div class="goal-priority priority-high">高优先级</div>
                                </div>
                            </div>
                            
                            <div class="timeline-item">
                                <div class="timeline-date"><i class="fas fa-calendar"></i> 2024年12月</div>
                                <div class="timeline-content">
                                    <h3 class="timeline-title"><i class="fas fa-briefcase"></i> 晋升高级产品经理</h3>
                                    <p class="goal-desc">完成年度业绩目标，展示领导能力，通过晋升评估。</p>
                                    <div class="goal-priority priority-critical">紧急</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 添加目标表单 -->
                <div class="add-goal-form" id="goalForm">
                    <div class="form-header">
                        <h2 class="form-title">添加新的人生目标</h2>
                        <button class="close-form" id="closeFormBtn">
                            <i class="fas fa-times"></i>
                        </button>
                    </div>
                    
                    <div class="form-grid">
                        <div class="form-group">
                            <label class="form-label">目标标题</label>
                            <input type="text" class="form-control" placeholder="输入目标名称">
                        </div>
                        
                        <div class="form-group">
                            <label class="form-label">目标分类</label>
                            <select class="form-control">
                                <option>选择目标分类</option>
                                <option>职业发展</option>
                                <option>教育学习</option>
                                <option>健康生活</option>
                                <option>家庭生活</option>
                                <option>财务状况</option>
                                <option>个人成长</option>
                                <option>旅行体验</option>
                            </select>
                        </div>
                        
                        <div class="form-group">
                            <label class="form-label">优先级</label>
                            <select class="form-control">
                                <option>选择优先级</option>
                                <option value="critical">紧急</option>
                                <option value="high">高</option>
                                <option value="medium">中</option>
                                <option value="low">低</option>
                            </select>
                        </div>
                        
                        <div class="form-group">
                            <label class="form-label">截止日期</label>
                            <input type="date" class="form-control">
                        </div>
                        
                        <div class="form-group full-width">
                            <label class="form-label">目标描述</label>
                            <textarea class="form-control" rows="4" placeholder="详细描述你的目标..."></textarea>
                        </div>
                        
                        <div class="form-group full-width">
                            <label class="form-label">里程碑设定</label>
                            <div style="border: 2px dashed var(--glass-border); border-radius: 10px; padding: 20px; background: rgba(255,255,255,0.4);">
                                <div class="milestone-input" style="display: flex; gap: 10px; margin-bottom: 15px;">
                                    <input type="text" class="form-control" placeholder="里程碑名称" style="flex: 2;">
                                    <input type="date" class="form-control" placeholder="截止日期" style="flex: 1;">
                                    <button class="btn btn-secondary" style="width: auto;">
                                        <i class="fas fa-plus"></i>
                                    </button>
                                </div>
                                
                                <div class="milestone-list">
                                    <div class="goal-meta" style="padding: 8px; background: rgba(240,242,241,0.7); border-radius: 8px; margin-bottom: 8px;">
                                        <i class="fas fa-check-circle" style="color: var(--medium);"></i> 
                                        完成需求文档 - 2023年12月10日
                                        <button style="float: right; background: transparent; border: none; color: var(--color02); cursor: pointer;">
                                            <i class="fas fa-times"></i>
                                        </button>
                                    </div>
                                    <div class="goal-meta" style="padding: 8px; background: rgba(240,242,241,0.7); border-radius: 8px; margin-bottom: 8px;">
                                        <i class="fas fa-check-circle" style="color: var(--medium);"></i> 
                                        完成原型设计 - 2024年1月15日
                                        <button style="float: right; background: transparent; border: none; color: var(--color02); cursor: pointer;">
                                            <i class="fas fa-times"></i>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="form-actions">
                            <button class="btn btn-secondary">取消</button>
                            <button class="btn btn-primary">保存目标</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        // 移动端导航菜单切换
        const navToggle = document.querySelector('.nav-toggle');
        const navLinks = document.querySelector('.nav-links');

        navToggle.addEventListener('click', () => {
            navToggle.querySelector('i').classList.toggle('fa-bars');
            navToggle.querySelector('i').classList.toggle('fa-times');
            navLinks.classList.toggle('active');
        });

        // 导航链接激活状态切换
        document.querySelectorAll('.nav-link').forEach(link => {
            link.addEventListener('click', function (e) {
                e.preventDefault();
                document.querySelectorAll('.nav-link').forEach(el => {
                    el.classList.remove('active');
                });
                this.classList.add('active');

                // 移动端点击后关闭菜单
                if (window.innerWidth <= 768) {
                    navLinks.classList.remove('active');
                    navToggle.querySelector('i').classList.add('fa-bars');
                    navToggle.querySelector('i').classList.remove('fa-times');
                }
            });
        });

        // 目标表单切换
        const addGoalBtn = document.getElementById('addGoalBtn');
        const goalForm = document.getElementById('goalForm');
        const closeFormBtn = document.getElementById('closeFormBtn');

        addGoalBtn.addEventListener('click', () => {
            goalForm.style.display = 'block';
            goalForm.scrollIntoView({ behavior: 'smooth' });
        });

        closeFormBtn.addEventListener('click', () => {
            goalForm.style.display = 'none';
        });

        // 卡片悬停效果
        document.querySelectorAll('.goal-card').forEach(card => {
            card.addEventListener('mouseenter', function () {
                this.style.transform = 'translateY(-5px)';
            });

            card.addEventListener('mouseleave', function () {
                this.style.transform = 'translateY(0)';
            });
        });

        // 设置默认截止日期为三个月后
        const today = new Date();
        const futureDate = new Date(today);
        futureDate.setMonth(futureDate.getMonth() + 3);
        
        const formattedDate = futureDate.toISOString().split('T')[0];
        document.querySelector('.add-goal-form input[type="date"]').value = formattedDate;

        // 动画效果增强
        window.addEventListener('scroll', () => {
            const navbar = document.querySelector('.navbar');
            if (window.scrollY > 10) {
                navbar.style.boxShadow = '0 6px 25px rgba(83, 71, 57, 0.25)';
                navbar.style.backdropFilter = 'blur(16px) saturate(180%)';
            } else {
                navbar.style.boxShadow = '0 4px 20px var(--glass-shadow)';
                navbar.style.backdropFilter = 'blur(12px) saturate(180%)';
            }
        });
        
        // 目标分布图表
        const ctx = document.getElementById('goalChart').getContext('2d');
        const goalChart = new Chart(ctx, {
            type: 'doughnut',
            data: {
                labels: ['职业发展', '教育学习', '健康生活', '家庭生活', '财务状况', '个人成长'],
                datasets: [{
                    data: [35, 20, 15, 10, 12, 8],
                    backgroundColor: [
                        'rgba(83, 71, 57, 0.7)',
                        'rgba(158, 135, 116, 0.7)',
                        'rgba(46, 196, 182, 0.7)',
                        'rgba(67, 97, 238, 0.7)',
                        'rgba(255, 159, 28, 0.7)',
                        'rgba(114, 9, 183, 0.7)'
                    ],
                    borderWidth: 0
                }]
            },
            options: {
                responsive: true,
                maintainAspectRatio: false,
                plugins: {
                    legend: {
                        position: 'right',
                        labels: {
                            boxWidth: 15,
                            padding: 15,
                            font: {
                                size: 12
                            }
                        }
                    }
                },
                cutout: '60%'
            }
        });
        
        // 目标进度动画
        document.querySelectorAll('.progress-fill').forEach(progress => {
            const width = progress.style.width;
            progress.style.width = '0%';
            setTimeout(() => {
                progress.style.width = width;
            }, 500);
        });
        
        // 完成目标按钮事件
        document.querySelectorAll('.goal-btn.primary').forEach(btn => {
            btn.addEventListener('click', function() {
                const card = this.closest('.goal-card');
                if (!card.classList.contains('completed')) {
                    // 模拟完成目标
                    card.classList.add('completed');
                    const progressFill = card.querySelector('.progress-fill');
                    progressFill.style.width = '100%';
                    card.querySelector('.progress-text').textContent = '100% 完成';
                    this.textContent = '查看详情';
                    
                    // 添加完成动画
                    card.style.animation = 'pulse 0.5s';
                    setTimeout(() => {
                        card.style.animation = '';
                    }, 500);
                }
            });
        });
    </script>
</body>
</html>